﻿<%@ Page Title="" Language="C#" MasterPageFile="~/trangchu.master" AutoEventWireup="true" CodeFile="Giohang.aspx.cs" Inherits="Giohang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style7
        {
            height: 32px;
            text-align: center;
            font-weight: 700;
            color: #0000FF;
            background-color: #FF0000;
        }
        .style8
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 100%;">
        <tr>
            <td class="style7" colspan="2" style="color:White;">Giỏ Hàng Của Bạn
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" onrowcommand="GridView1_RowCommand" ShowHeaderWhenEmpty="True" 
                    Width="100%" onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="MaSP" HeaderText="Mã sản phẩm" />
                        <asp:BoundField DataField="TenSP" HeaderText="Tên sản phẩm" />
                        <asp:BoundField DataField="Gia" HeaderText="Đơn giá" />
                        <asp:TemplateField HeaderText="Số lượng">
                            <ItemTemplate>
                                <asp:TextBox ID="txtSoLuong" runat="server" Text='<%# Eval("SoLuong") %>' 
                                    Width="50px"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ThanhTien" HeaderText="Thành tiền" />
                        <asp:ButtonField ButtonType="Image" CommandName="NutXoa" HeaderText="Xóa" 
                            ImageUrl="~/Images/thungrac.jpg" Text="Button" />
                    </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <SortedAscendingCellStyle BackColor="#FEFCEB" />
                    <SortedAscendingHeaderStyle BackColor="#AF0101" />
                    <SortedDescendingCellStyle BackColor="#F6F0C0" />
                    <SortedDescendingHeaderStyle BackColor="#7E0000" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <asp:Label ID="Label3" runat="server" Text="Tổng Tiền: "></asp:Label>
            </td>
            <td style="text-align: left">
                <asp:Label ID="Label4" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Button ID="btnMuaThem" runat="server" onclick="btnMuaThem_Click" 
                    Text="Mua Thêm" />
            </td>
            <td class="style8">
                <asp:Button ID="btnXoa" runat="server" onclick="btnXoa_Click" 
                    Text=" Xóa Giỏ Hàng" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Button ID="btnCapNhat" runat="server" onclick="btnCapNhat_Click" 
                    Text="Cập Nhật" />
            </td>
            <td class="style8">
                <asp:Button ID="btnThanhToan" runat="server" onclick="btnThanhToan_Click" 
                    Text="Thanh Toán" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

